﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Server.Data
{
	public interface IVoucherKpr
	{
		IEnumerable<LaddingVoucher> Search(string keyword, DateTime fromdate, DateTime todate, Pagination pagi);
		void Create(LaddingVoucher voucher);

		void Update(LaddingVoucher voucher);

		void Remove(string voucherID);
	}

	public interface IRiskVoucherKpr
	{
		IEnumerable<RiskVoucher> Search(string keyword, DateTime fromdate, DateTime todate, Pagination pagi);
		void Create(RiskVoucher voucher);

		void Update(RiskVoucher voucher);

		void Remove(string voucherID);
	}

	public interface IReceiptKpr
	{
		IEnumerable<LaddingReceipt> Search(string keyword, DateTime fromdate, DateTime todate, Pagination pagi);
		void Create(LaddingReceipt voucher);

		void Update(LaddingReceipt voucher);

		void Remove(string voucherID);
	}

	public interface IPaymentKpr
	{
		IEnumerable<Payment> Search(string keyword, DateTime fromdate, DateTime todate, Pagination pagi);
		void Create(Payment voucher);

		void Update(Payment voucher);

		void Remove(string voucherID);
	}



	public class PaymentKpr : IPaymentKpr
	{
		private DbConnection connection;
		public PaymentKpr(DbConnection connection)
		{
			this.connection = connection;

		}
		
		IEnumerable<Payment> IPaymentKpr.Search(string keyword, DateTime fromdate, DateTime todate, Pagination pagi)
		{
			throw new NotImplementedException();
		}

		void IPaymentKpr.Create(Payment voucher)
		{
			throw new NotImplementedException();
		}

		void IPaymentKpr.Update(Payment voucher)
		{
			throw new NotImplementedException();
		}

		void IPaymentKpr.Remove(string voucherID)
		{
			throw new NotImplementedException();
		}
	}


}
